package chapter_09_composite.p9_2;

import java.util.List;

/**
 * Created by CharloYao on 2017/3/6.
 */
public class File implements Root {

    private String name;

    public File(String name) {
        this.name = name;
    }

    @Override
    public boolean add(Root file) {
        return false;
    }

    @Override
    public boolean remove(Root file) {
        return false;
    }

    @Override
    public void display() {
        System.out.println("   |   "+this.name);
    }

    @Override
    public List<Root> getFile() {
        return null;
    }
}
